# 打开windows快捷方式

import time

from xqol_login.open_game_utils import do_open_game_window, do_login_game

desktop_path = "C:\\Users\\hujun\\Desktop\\xqol_2560x1440_100\\xqol88"
# 等待打开的账号
account_list = [

    { "window_title": "xqApp hujun5",  "link_name": "hujun5 艾克擂台", "x": 310*0 + 7, "y": 0 },
    { "window_title": "xqApp B11620",  "link_name": "1 念念不忘", "x": 310*1 + 7, "y": 0 },
    { "window_title": "xqApp B11814", "link_name": "2 念念不舍", "x": 310*2 + 7, "y": 0 },
    { "window_title": "xqApp B10661", "link_name": "3 念念不语", "x": 310*3 + 7, "y": 0 },
    { "window_title": "xqApp B10469", "link_name": "4 念念不释", "x": 310*4 + 7, "y": 0 },
    { "window_title": "xqApp xqolhm15", "link_name": "xqolhm15 热辣", "x": 310*5 + 7, "y": 0 },
    { "window_title": "xqApp xqolhm16", "link_name": "xqolhm16 热诚", "x": 310*6+ 7, "y": 0 },

]

def login_88():
    # 打开游戏
    my_game_windows = do_open_game_window(desktop_path, account_list)
    print(my_game_windows)
    # 登录游戏 耐心等待会，电脑性能不行的话
    time.sleep(10)
    do_login_game(account_list)

if __name__ == '__main__':
    login_88()